<?php
  function VoteAlert_init(){
    if (!DBUtil::createTable('votealert_province')) {
      return false;
    }
    if (!DBUtil::createTable('votealert_district')) {
      return false;
    }
    if (!DBUtil::createTable('votealert_tambon')) {
      return false;
    }
    if (!DBUtil::createTable('votealert_votetype')) {
      return false;
    }
    if (!DBUtil::createTable('votealert_votedata')) {
      return false;
    }
    return true;
  }

  function VoteAlert_delete(){
    DBUtil::dropTable('votealert_province');
    DBUtil::dropTable('votealert_district');
    DBUtil::dropTable('votealert_tambon');
    DBUtil::dropTable('votealert_votetype');
    DBUtil::dropTable('votealert_votedata');
    return true;
  }
?>